package com.aibaixun.system.domain;

import com.aibaixun.common.config.ValidGroup;
import com.aibaixun.common.core.validate.AddGroup;
import com.aibaixun.common.core.validate.EditGroup;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * U模型信息表
 * @TableName posture_device_model
 */
@TableName(value ="posture_device_model")
@Data
public class PostureDeviceModel implements Serializable {
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    @NotNull(message = "模型id不能为空",groups = EditGroup.class)
    private Long modelId;

    /**
     * 模型名称（类型）
     */
    @NotBlank(message = "模型id不能为空",groups = AddGroup.class)
    private String modelName;

    /**
     * 模型图标路径
     */
    @NotBlank(message = "模型id不能为空",groups = AddGroup.class)
    private String modelIcon;

    /**
     * u高
     */
    @NotNull(message = "模型id不能为空",groups = AddGroup.class)
    private Integer height;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
